package com.wyb.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;
import java.util.Date;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class Goods implements Serializable {
    private Integer goodsId;
    private String goodsName;
    private Integer stock;
    private Double costPrice;
    private Double retailPrice;
    private Double discount;
    private Integer status;
    private Integer categoryId;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date listTime;
    private String createTime;
    private String updateTime;
    private String introduction;

    @Override
    public String toString() {
        return "Goods{" +
                "goodsId=" + goodsId +
                ", goodsName='" + goodsName + '\'' +
                ", stock=" + stock +
                ", costPrice=" + costPrice +
                ", retailPrice=" + retailPrice +
                ", discount=" + discount +
                ", status=" + status +
                ", categoryId=" + categoryId +
                ", listTime='" + listTime + '\'' +
                ", createTime='" + createTime + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", introduction='" + introduction + '\'' +
                '}';
    }

    public Goods(Integer goodsId, String goodsName, Integer stock, Double costPrice, Double retailPrice, Double discount, Integer status, Integer categoryId, Date listTime, String createTime, String updateTime, String introduction) {
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.stock = stock;
        this.costPrice = costPrice;
        this.retailPrice = retailPrice;
        this.discount = discount;
        this.status = status;
        this.categoryId = categoryId;
        this.listTime = listTime;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.introduction = introduction;
    }

    public Goods() {
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Double getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(Double costPrice) {
        this.costPrice = costPrice;
    }

    public Double getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(Double retailPrice) {
        this.retailPrice = retailPrice;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Date getListTime() {
        return listTime;
    }

    public void setListTime(Date listTime) {
        this.listTime = listTime;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }
}
